package com.zhonglz.util.tools;

import java.util.List;

public class DataGrid {

	// 结果行数
	private Long total;
	// 结果集
	private List<?> rows;
	// 总页数
	private Integer totlePages;
	// 当前页
	private Integer pageNumber;
	//消息码
	private Integer code;
	//消息内容
	private String msg;
	

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Integer getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(Integer pageNumber) {
		this.pageNumber = pageNumber;
	}

	public Long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	public List<?> getRows() {
		return rows;
	}

	public void setRows(List<?> rows) {
		this.rows = rows;
	}

	public Integer getTotlePages() {
		return totlePages;
	}

	public void setTotlePages(Integer totlePages) {
		this.totlePages = totlePages;
	}

	

	public DataGrid(Long total, List<?> rows, Integer totlePages, Integer pageNumber,Integer code) {
		super();
		this.total = total;
		this.rows = rows;
		this.totlePages = totlePages;
		this.pageNumber = pageNumber;
		this.code = code;
	}

	public DataGrid(long total, List<?> rows) {
		this.total = total;
		this.rows = rows;
	}
}
